<form class="formlogin" action="<?php
if ($row == '')
	echo base_url() . 'admin/ctrl_mahasiswa/insert';
else
	echo base_url() . 'admin/ctrl_mahasiswa/edit/' . $fakultas . '/' . $row['idmhs'];
?>" method="post" enctype="multipart/form-data" name="" id="">


	<center>
		<div class="contentIsi">
			<table align="center" width="350px">
				<tr>
					<td>
						<div class="isi noborder">
							<div class="biodata">
								<div class="item_biodata">
									<span class="label_biodata label_form">NIM : </span>
									<span class="content_biodata">
										<input class="text" type="text" name="nim" id="NIM" value="<?php if ($row != '')echo $row['nim']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Nama : </span>
									<span class="content_biodata">
										<input class="text" type="text" name="nama" id="nama" value="<?php if ($row != '')echo $row['nama']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Fakultas : </span>
									<span class="content_biodata">
										<select class="text" name="fakultas" id="Fakultas">
											<option value="fsrd" <?php if ($row != '')
								  if ($row['fakultas'] == 'fsrd')
									  echo 'selected';  ?>>FSRD</option>
											<option value="sbm" <?php if ($row != '')
								  if ($row['fakultas'] == 'sbm')
									  echo 'selected';  ?>>SBM</option>
											<option value="ftmd" <?php if ($row != '')
								  if ($row['fakultas'] == 'ftmd')
									  echo 'selected';  ?>>FTMD</option>
											<option value="fttm" <?php if ($row != '')
								  if ($row['fakultas'] == 'fttm')
									  echo 'selected';  ?>>FTTM</option>
											<option value="sappk" <?php if ($row != '')
								  if ($row['fakultas'] == 'sappk')
									  echo 'selected';  ?>>SAPPK</option>
											<option value="stei" <?php if ($row != '')
								  if ($row['fakultas'] == 'stei')
									  echo 'selected';  ?>>STEI</option>
											<option value="fmipa" <?php if ($row != '')
								  if ($row['fakultas'] == 'fmipa')
									  echo 'selected';  ?>>FMIPA</option>
											<option value="fitb" <?php if ($row != '')
								  if ($row['fakultas'] == 'fitb')
									  echo 'selected';  ?>>FITB</option>
											<option value="sith" <?php if ($row != '')
								  if ($row['fakultas'] == 'sith')
									  echo 'selected';  ?>>SITH</option>
											<option value="sf" <?php if ($row != '')
								  if ($row['fakultas'] == 'sf')
									  echo 'selected';  ?>>SF</option>
											<option value="ftsl" <?php if ($row != '')
								  if ($row['fakultas'] == 'ftsl')
									  echo 'selected';  ?>>FTSL</option>
											<option value="fti" <?php if ($row != '')
								  if ($row['fakultas'] == 'fti')
									  echo 'selected';  ?>>FTI</option>
										</select>
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Prodi : </span>
									<span class="content_biodata">
										<input type="text" class="text" name="prodi" id="Prodi" value="<?php if ($row != '')echo $row['prodi']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Angkatan : </span>
									<span class="content_biodata">
										<input type="text" name="angkatan" class="text" id="Angkatan" value="<?php if ($row != '')echo $row['angkatan']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Asal : </span>
									<span class="content_biodata">
										<input type="text" name="asal" id="Asal" class="text" value="<?php if ($row != '')echo $row['asal']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Semester : </span>
									<span class="content_biodata">
										<input type="text" name="semester" id="Semester" class="text" value="<?php if ($row != '')echo $row['semester']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Slot Beasiswa : </span>
									<span class="content_biodata">
										<input type="text" name="slotbeasiswa" id="SlotBeasiswa" class="text" value="<?php if ($row != '')echo $row['slotbeasiswa']; ?>" />
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Status Tunda : </span>
									<span class="content_biodata">
										<select name="statustunda" id="select2" class="text">
											<option value="TRUE" <?php if ($row != '')
								  if ($row['statustunda'] != 'TRUE')
									  echo 'selected';  ?>>Tunda</option>
											<option value="FALSE" <?php if ($row != '')
								  if ($row['statustunda'] != 'FALSE')
									  echo 'selected';  ?>>Tidak</option>
										</select>
									</span>
								</div>
								<div class="item_biodata">
									<span class="label_biodata label_form">Besar SPP : </span>
									<span class="content_biodata">
										<input type="text" name="spp" id="SlotBeasiswa" class="text" value="<?php if ($row != '')echo $row['spp']; ?>"/>
									</span>
								</div>
								<br/>
								<br/>
								<center>
									<input class="button" type="reset" id="button2" value="Reset" />
									&nbsp;
									<input class="button" type="submit" id="button" value="Submit" />
								</center>
								<br/>
							</div>
							</div>
					</td>
				</tr>
			</table>
		</div>
	</center>	
</form>